package com.kws.tool.controller;

import com.kws.common.core.domain.R;
import com.kws.tool.dto.PushDto;
import com.kws.tool.service.AliyunPushService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author : zhangbenting
 * @date : 2024/10/24 21:28
 * @Version: 1.0
 */
@RequestMapping("/appPushManage")
@RestController
@Api(value = "app推送管理", tags = "app推送管理")
public class AppPushController {

    @Autowired
    private AliyunPushService pushService;

    @PostMapping("/mobilePush")
    @ApiOperation("App移动推送")
    public R<String> mobilePush(@RequestBody PushDto pushDto) {
        return R.ok(pushService.mobilePush(pushDto));
    }
}
